package com.zrrd.straw1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

//步骤4：添加启动security注解
@EnableWebSecurity
//步骤5：开启访问权限功能
@EnableGlobalMethodSecurity(prePostEnabled = true)
@SpringBootApplication
@MapperScan("com.zrrd.straw1.mapper")
public class Straw1Application {

    public static void main(String[] args) {
        SpringApplication.run(Straw1Application.class, args);
    }

}
